<form name="form1" id="form1" action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="itemID" value="" />
<input type="hidden" name="mode" value="" />
<input type="hidden" name="type" value="" />
<table width="100%" border="0" cellpadding="5" cellspacing="2">
  	<tr>
     <td width="5%" align="left" bgcolor="#FFFFCC">Tên : <label>
       <input onkeyup="uncheckInputText(this.id)" type="text" size="50" name="name" id="name" value="<?php echo $this->dataPost['name'];?>" />
     </label></td>
   </tr>
	<input type="hidden" name="nameimage" value="<?php echo $this->tenFile; ?>" />
   <tr>
   	 <td valign="top" align="left" bgcolor="#FFFFCC">
   	 	<img src="<?php echo FunctionCommon::getImage('img-the-min', $this->tenFile);?>" /><br />
   	     <input onclick="frmSubmit('m=category&a=edit<?php echo constants::$pathUrl;?>', '<?php echo $this->id; ?>', 'edit', 'delete')" type="button" name="delimage" id="delimage" value="Delete Image" style="cursor:pointer; color:#F00;" />
     </td>
   </tr>
   <tr>
   	 <td align="left" bgcolor="#FFFFCC">
   	 	<span class="span-text">Hình ảnh :</span><br />
   	 	<input type="file" name="code" id="code" size="50" />&nbsp;&nbsp;
   	 	<input onclick="frmSubmit('m=category&a=edit<?php echo constants::$pathUrl;?>', '<?php echo $this->id; ?>', 'edit', 'upload')" type="button" name="uphinh" value="Upload Image">
   	 </td>
   </tr>
  <tr>
    <td align="center" bgcolor="#FFFFCC" valign="middle">
    	<table width="100%" border="0" cellpadding="0" cellspacing="6" class="fbutton">
    		<tr>
    			<td width="45%" align="right" class="fbutrg"><img onclick="window.location.assign('index.php?m=category<?php echo constants::$pathUrl;?>');" src="images/default/back.png" border="0" width="34" title="back"/>&nbsp;&nbsp;&nbsp;</td>
    			<td width="55%" align="left">&nbsp;&nbsp;&nbsp;<span onclick="frmSubmit('m=category&a=edit<?php echo constants::$pathUrl;?>', '<?php echo $this->id; ?>', 'edit', 'edit')" class="fbutlf"><?php echo $this->tpl_button;?></span></td>
    		</tr>
    	</table>
    </td>
    </tr>
</table>

<?php if ($this->dialog) :?>
<div id="allconfirm">
	<div id="popup-diet" class="ui-popup-diet ui-body-e ui-corner-all" style="top: 216px;">
	<p>Thông tin được update</p>
	<a href="#" onclick="window.location.assign('index.php?m=category<?php echo constants::$pathUrl;?>')">OK</a>
	</div>
</div>
<?php endif;?>